package com.example.demo.services;

import com.example.demo.model.User;
import org.springframework.stereotype.Service;


@Service
public interface IUserService {

    void createNormalUser(User user);

    //根据用户名查询信息
    User selectByUsername( String username);

    User login(String username, String password);

    //根据id查询用户信息
    User selectById(Long id);

    //更新用户的发帖数
    void addArticleCountById(Long id);


    void subOneArticleCountById(Long id);
}
